import java.util.Scanner;

public class IfDemo07 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入体重 kg");
        float weight = scanner.nextFloat();
        System.out.println("请输入身高 m");
        float height = scanner.nextFloat();
        float bmi = weight / (height * height);
        if (bmi < 18.5) {
            System.out.println("偏瘦");
        } else if (bmi <= 24.9) {
            System.out.println("正常");
        } else if (bmi <= 29.9) {
            System.out.println("偏胖");
        } else if (bmi <= 34.9) {
            System.out.println("肥胖");
        } else if (bmi <= 39.9) {
            System.out.println("重度肥胖");
        } else {
            System.out.println("极度肥胖");
        }
    }
}
